/* 基础样式 */
body {
    margin: 0;
    font-family: 'SimSun', '宋体', serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    background-color: #8d6e63; /* 红木色，更符合古典风格 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: #fff8e1; /* 米黄色文字 */
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: #6d4c41; /* 更深的红木色 */
}

/* 海报容器 */
.poster-container {
    position: relative;
    width: 700px;
    height: 900px;
    margin: 40px auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.poster-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('Red Chamber.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

.text-content {
    position: relative;
    z-index: 1;
    color: #5d4037; /* 深棕色文字 */
    text-align: center;
    padding: 60px 40px;
    background-color: rgba(255, 253, 231, 0.85); /* 淡黄色半透明背景 */
    border-radius: 8px;
    margin: 80px 50px;
}

.title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #5d4037;
}

.subtitle {
    font-size: 20px;
    margin: 10px 0;
    font-style: italic;
}

/* 内容区域通用样式 */
.content-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #5d4037;
    border-bottom: 2px solid #d7ccc8;
    padding-bottom: 15px;
    text-align: center;
    margin-bottom: 30px;
}

/* 作者简介样式 */
.author-info p {
    margin-bottom: 15px;
    text-indent: 2em; /* 首行缩进 */
    line-height: 1.8;
}

/* 剧情发展时间线 */
.plot-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.plot-item {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #8d6e63;
}

.plot-item h3 {
    color: #5d4037;
    margin-top: 0;
}

/* 人物关系网格 - 使用浮动布局 */
.character-grid {
    overflow: hidden; /* 清除浮动 */
    margin-top: 30px;
}

.character-card {
    width: 45%; /* 每行显示2个，留一些间距 */
    margin: 0 2.5% 20px 2.5%; /* 左右外边距2.5%，底部间距20px */
    float: left;
    background: linear-gradient(135deg, #fdfcfb 0%, #f5f5f5 100%);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d7ccc8;
    text-align: center;
    box-sizing: border-box; /* 确保padding和border包含在宽度内 */
}

/* 四大家族网格 - 使用浮动布局 */
.family-grid {
    overflow: hidden; /* 清除浮动 */
    margin-top: 30px;
}

.family-card {
    width: 45%; /* 每行显示2个 */
    margin: 0 2.5% 20px 2.5%; /* 左右外边距2.5%，底部间距20px */
    float: left;
    background: linear-gradient(135deg, #fdfcfb 0%, #f5f5f5 100%);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #d7ccc8;
    text-align: center;
    box-sizing: border-box;
}

.family-card h3 {
    color: #5d4037;
    margin-top: 0;
    font-size: 22px;
}

.family-card p {
    margin: 10px 0;
}

.character-card h3 {
    color: #5d4037;
    margin-top: 0;
}

